<%--
    Created by IntelliJ IDEA.
    User: Re
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>查询所有的用户信息</title>
</head>
<body>
<div style="text-align: center">
    <form action="/checkUser" method="post">
        <div style="text-align: center">
        <table border="1">
            <tr>
                <th>用户ID</th>
                <th>用户名</th>
                <th>用户余额</th>
                <th>删除用户</th>
            </tr>
            <c:forEach items="${msg}" var="users">
                <tr>
                    <td>${users.userId}</td>
                    <td>${users.userName}</td>
                    <td>${users.balance}</td>
                    <td><input type="checkbox" name="deleteUserName" value="${users.userName}"></td>
                </tr>
            </c:forEach>
        </table>
        <button type="submit" name="check" value="deleteUser">删除用户</button>
        <button type="submit" name="check" value="allUsers">查看所有用户信息</button>
        <hr>
        查询用户的用户名<input type="text" name="checkUserName"  placeholder="用户名"><br>
        <button type="submit" name="check" value="user">查看个人信息</button><span style="color: red;font-size: 12px">${warning}</span>
        </div>
    </form>
    <h2>在线人数${onlineNumber}个</h2>
</div>
</body>
</html>
